package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc DashboardOneMenuDto
 * @使用场景
 */
@Data
public class DashboardOneMenuDto extends BaseDto implements Serializable {

  /**
   * 大屏一级导航编码
   */
  @ApiModelProperty("大屏一级导航编码")
  private String dashboardOneMenuCode;

  /**
   * 大屏一级导航名称
   */
  @ApiModelProperty("大屏一级导航名称")
  private String dashboardOneMenuName;

  /**
   * 大屏一级导航图标
   */
  @ApiModelProperty("大屏一级导航图标")
  private String dashboardOneMenuIcon;

  /**
   * 大屏一级导航别名
   */
  @ApiModelProperty("大屏一级导航别名")
  private String dashboardOneMenuAlias;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DashboardOneMenuDto that = (DashboardOneMenuDto) o;
    return (
      dashboardOneMenuCode == that.dashboardOneMenuCode &&
      dashboardOneMenuName == that.dashboardOneMenuName &&
      dashboardOneMenuIcon == that.dashboardOneMenuIcon &&
      dashboardOneMenuAlias == that.dashboardOneMenuAlias
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      dashboardOneMenuCode,
      dashboardOneMenuName,
      dashboardOneMenuIcon,
      dashboardOneMenuAlias
    );
  }

}
